<template>
  <div class="lnrzyyjkfw">
    <p class="top">
      <span style="font-weight: 700; font-size: 16px; color: #000">患者1</span>
      <span style="display: inline-block; margin: 0 20px"
        >证件号：533221194503112723</span
      >
      <span>填表人：肖汉琪</span>
    </p>
    <div class="tab1">
      <div class="box">
        <span>随访医生：</span>
        <el-select
          filterable
          placeholder="请选择随访医生"
          size="small"
          style="width: 200px"
        >
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>
        <el-select
          filterable
          placeholder="请选择随访医生"
          size="small"
          style="width: 200px; margin-left: 20px"
        >
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>
      </div>
      <div class="box">
        <span>填表日期：</span>
        <el-date-picker
          v-model="value2"
          align="right"
          type="date"
          placeholder="选择日期"
          :picker-options="pickerOptions"
          size="small"
        >
        </el-date-picker>
      </div>
      <table border="1" cellspacing="0" style="width: 100%">
        <tr>
          <th colspan="4">项目</th>
          <th colspan="2">测评结果</th>
          <th>分数</th>
        </tr>
        <tr>
          <td colspan="4">1. 你对你的生活基本满意吗?</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">2. 你是否丧失了很多你的兴趣和爱好?</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">3. 你感到生活很空虚吗？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">4. 你经常感到很无聊吗？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">5. 你对未来充满希望吗？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">6. 你是否无法摆脱头脑中的想法和烦恼?</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">7. 大部分时间你都精神抖擞吗？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">8. 你是否觉得有什么不好的事情要发生而感到很害怕？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">9. 大部分时间你都觉得快乐吗？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">10. 你经常感到无助吗？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">11. 你是否经常感到不安宁或坐立不安？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">12. 你是否宁愿呆在家而不愿出去做新鲜事？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">13. 你是否经常担心未来？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">14. 你是否觉得你的记忆力有问题？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">15. 你是否觉得现在活着很精彩？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">16. 你是否感到垂头丧气无精打采？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">17. 你是否感到你现在很没有用？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">18. 你是否为过去的事情担心很多？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">19. 你觉得生活很兴奋吗？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">20. 你是觉得学习新鲜事物很困难？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">21. 你觉得精力充沛吗？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">22. 你觉得你的现状是毫无希望的吗？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">23. 你是否觉得大部分人都比你活的好？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">24. 你是否经常把小事情弄得很糟糕？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">25. 你经常有想哭的感觉吗？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">26. 你对集中注意力有困难吗？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">27. 你喜欢每天早晨起床的感觉吗？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">28. 你是否宁愿不参加社交活动？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">29. 你做决定容易吗？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4">30. 你的头脑还和以前一样清楚吗？</td>
          <td>
            <el-radio v-model="info.a" label="0" value="0">是</el-radio>
          </td>
          <td>
            <el-radio v-model="info.a" label="1" value="1">否</el-radio>
          </td>
          <td>
            <el-input
              size="small"
              style="width: 200px"
              v-model="info.a"
            ></el-input>
          </td>
        </tr>
        <tr>
          <td colspan="4"></td>
          <td colspan="2"><b>总分</b></td>
          <td><b>0</b></td>
        </tr>
      </table>
    </div>

    <div
      class="box"
      style="background-color: #fffbe6; border: 1px solid #ffe58f"
    >
      每个提示抑郁的回答计1分，（问题1,5,7,9,15,19,21,27,29和30回答“否”，其他问题回答“是”提示抑郁可能。）≥15分，提示老年抑郁可能，需转上级医院神经科处理。
      <br />
      注：抑郁是一种复杂的负性情绪体验，以主观的痛苦感为核心部分，表现在个体的情感、心境、认知、生理症状等多方面，如悲观、失败感、不满、犹豫不决、食欲下降、睡眠障碍、厌倦、敌意等。每个人都会有一些抑郁性的体验，而持续和严重的情况下，抑郁就可能成为一种精神障碍。抑郁和个体的人格特点有关，但很大程度上受社会因素的影响，如家庭环境压抑、人际关系紧张等。老年人的躯体主诉较多，如食欲下降、睡眠障碍等，在老年阶段属于正常范围，但使用一般抑郁量表可能会因此误诊为抑郁症。故对老年人，应使用老年抑郁量表（GDS）。
    </div>
  </div>
</template>
    
    <script>
export default {
  data() {
    return {
      info: {},
      options: [
        {
          value: "测试",
          label: "测试",
        },
      ],
      pickerOptions: {
        
        shortcuts: [
          {
            text: "今天",
            onClick(picker) {
              picker.$emit("pick", new Date());
            },
          },
        ],
      },
      value2: "",
    };
  },
  methods: {
    btn_ok() {
      var url = this.info.id
        ? "/diabetesServiceVisit/modify"
        : "/diabetesServiceVisit/add";
      this.info.symptom = this.info.symptom.toString();
      this.info.signFootArterial = this.info.signFootArterial.toString();
      this.info.insulinCount = this.info.insulinCount.toString();
      var date = new Date();
      this.info.id
        ? (this.info.updatetime = date)
        : (this.info.createtime = date);
      this.$post(url, this.info).then((res) => {
        if (res.code == 400) {
          this.$message({
            message: res.message,
            type: "error",
          });
          return;
        }
        this.$message({
          message: "操作成功",
          type: "success",
        });
      });
    },
    getInfo(item) {
      this.isLoading = true;
      this.info = item;
      this.isLoading = false;
    },
    clear_info() {
      this.info = {
        hospitalId: "3015",
        idNo: localStorage.getItem('idCard'),
        residentName: "测试患者",
        symptom: [],
        signFootArterial: [],
        diabetesServiceChildList: [{}],
        insulinCount: [],
      };
    },
  },
};
</script>
    
    <style scoped lang="scss">
.lnrzyyjkfw {
  .top {
    padding: 10px 20px;
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
  }
  .tab1 {
    tr {
      width: 100%;
      th {
        text-align: center;
        color: #000;
        background-color: rgb(250, 250, 250);
      }
      td {
        padding: 10px;
      }
    }
  }
  .box {
    padding: 10px 100px;
    background-color: rgb(250, 250, 250);
    margin: 10px 0;
  }
}
</style>